package com.ibeeking.gmc.global.service.common.dos;

import com.ibeeking.found.common.base.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName ScriptPublishDO
 * @Description 脚本发布
 * @Author ibeeking
 * @Date 2021-05-02 16:03
 **/
@Data
@TableName("gmc_script_publish")
public class ScriptPublishDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 数据库连接
     */
    @TableField(value = "db_config_id")
    private Long dbConfigId;

    /**
     * 数据库
     */
    @TableField(value = "db_id")
    private Long dbId;

    /**
     * 版本
     */
    @TableField(value = "version")
    private String version;
    /**
     * 行业类型:mall=电商平台；mdi=制造业
     */
    @TableField(value = "industry")
    private String industry;
    /**
     * 系统端：tenant=租户端,shop=商户端,custom_service=客服端, cp=APP应用端
     */
    @TableField(value = "module")
    private String module;

    /**
     * 执行脚本
     */
    @TableField(value = "sql_script")
    private String sqlScript;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 是否启用，1-启用，0-未启用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;
}
